package com.cpl.facade.springMvcSample;

import com.cpl.service.locator.ServiceLocator;
import com.cpl.service.springmvcsample.IRegistartionService;

public class RegistrationFacade implements IRegistrationFacade {

	ServiceLocator serviceLocator=ServiceLocator.instance();
	public boolean register(String name, String age) {
		System.out.println("*******Welcome to Facade********");
		IRegistartionService regService=(IRegistartionService) serviceLocator.getService("RegService");
		
		System.out.println(regService);
		regService.register(name, age);
		return false;
	}

}
